{% extends "base.html" %}

{% block topnav %}
<a href="#">Add Project</a> | 
<a href="#">Modify Project</a> | 
<a href="#">Delete Project</a> |
<a href="/accounts/logout">Logout</a>
{% endblock %}

{% block nav %}
<ul>
	<li>Navigation</li>
	<li><a href="#" class="selected">Projects</a></li>
	<li><a href="#">Objectives</a></li>
	<li><a href="#">Tasks</a></li>
	<li><a href="#">Users</a></li>
</ul>
{% endblock %}

{% block content %}
<h2>Projects</h2>
<p>The currently active projects assigned to you</p>

<table>
	<thead>
		<tr>
			<td>Title</td>
			<td>Client</td>
			<td>Request Date</td>
			<td>Active</td>
		</tr>
	</thead>
	{% for p in newprojects %}
	<tr class="{% cycle odd,even %}">
		<td><a href="{{ p.get_absolute_url }}">{{ p }}</a></td>
		<td>{{ p.client }}</td>
		<td>{{ p.request_date }}</td>
		<td>{{ p.active }}</td>
	</tr>
	{% endfor %}
</table>

{% endblock %}